<?php namespace app\Classes\BuilderTest;

//定义具体的产品
class benziCarModel extends carModel{

    public $spareParts = array();
    public $carName = "";

    public function addLunzi($xinghao){
        echo "奔驰".$this->carName."的轮子，型号是" . $xinghao . "\n";
    }

    public function addWaike($xinghao){
        echo "奔驰".$this->carName."的外壳，型号是" . $xinghao . "\n";
    }

    public function addFadongji($xinghao){
        echo "奔驰".$this->carName."的发动机,型号是 " . $xinghao . "\n";
    }
}
